<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Track Fitting: grad_tracks.m File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Track Fitting
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">grad_tracks.m File Reference</div>  </div>
</div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">function&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="grad__tracks_8m.html#aa13024e1f228a8bb260dab58e7acb874">grad_tracks</a> (in img_filename, in delta, in varargin)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Small script for selecting points at the top frame of a 2D time series tif.  <a href="#aa13024e1f228a8bb260dab58e7acb874"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="aa13024e1f228a8bb260dab58e7acb874"></a><!-- doxytag: member="grad_tracks.m::grad_tracks" ref="aa13024e1f228a8bb260dab58e7acb874" args="(in img_filename, in delta, in varargin)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">function grad_tracks </td>
          <td>(</td>
          <td class="paramtype">in&#160;</td>
          <td class="paramname"><em>img_filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in&#160;</td>
          <td class="paramname"><em>delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">in&#160;</td>
          <td class="paramname"><em>varargin</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Small script for selecting points at the top frame of a 2D time series tif. </p>
<p>Script goes as follows: </p>
<ol>
<li>
Scrub the directory names to ensure proper paths. </li>
<li>
If saving data, create output file names. </li>
<li>
Show user last frame in the image. </li>
<li>
The user clicks on points to initialize the gradient track algorithm then hits 'Enter' or 'Return' to accept input. </li>
<li>
Call fit_track for each set of input coordinates. </li>
<li>
Add all tracks into one image. </li>
<li>
If saving data, save both binary track and RGB data </li>
<li>
Convert track data into 3D coordinates. </li>
<li>
Show in 3D plot. </li>
</ol>
<p>Instead of clicking coordinates, you can use a list. Check line 68 of the source code for more info.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">img_filename</td><td>filename for image (tif format) to use </td></tr>
    <tr><td class="paramname">delta</td><td><img class="formulaInl" alt="$ \delta $" src="form_2.png"/> (radius) for sub-image </td></tr>
    <tr><td class="paramname">varargin</td><td>option arguement, output directory to write rgb and binary track image data. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div>


<hr class="footer"/><address class="footer"><small>
Generated on Wed Sep 28 2011 02:36:57 for Track Fitting by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
